home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / super_cr.swf / scripts / DefineSprite_380 / frame_241 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  397 b   |  22 lines

  1. stop();
  2. cover.swapDepths(9999);
  3. delete ball.onEnterFrame;
  4. delete flame.onEnterFrame;
  5. ball._x = 1000;
  6. ball._y = 65;
  7. flame._y = 65;
  8. ball._xscale = 100;
  9. ball._yscale = 100;
  10. flame._xscale = 75.08;
  11. flame._yscale = 75.08;
  12. ball.onEnterFrame = function()
  13. {
  14.    this._x -= 60;
  15.    flame._x = this._x + 14;
  16.    if(this._x <= -20)
  17.    {
  18.       play();
  19.       delete this.onEnterFrame;
  20.    }
  21. };
  22.